class AddressController {
    
    /*def index = { redirect(action:list,params:params) }

    // the delete, save and update actions only accept POST requests
    def allowedMethods = [delete:'POST', save:'POST', update:'POST']

    def list = {
        if(!params.max) params.max = 10
        [ addressInstanceList: rowingmanager.domain.Address.list( params ) ]
    }

    def show = {
        def addressInstance = rowingmanager.domain.Address.get( params.id )

        if(!addressInstance) {
            flash.message = "rowingmanager.domain.Address not found with id ${params.id}"
            redirect(action:list)
        }
        else { return [ addressInstance : addressInstance ] }
    }

    def delete = {
        def addressInstance = rowingmanager.domain.Address.get( params.id )
        if(addressInstance) {
            addressInstance.delete()
            flash.message = "rowingmanager.domain.Address ${params.id} deleted"
            redirect(action:list)
        }
        else {
            flash.message = "rowingmanager.domain.Address not found with id ${params.id}"
            redirect(action:list)
        }
    }

    def edit = {
        def addressInstance = rowingmanager.domain.Address.get( params.id )

        if(!addressInstance) {
            flash.message = "rowingmanager.domain.Address not found with id ${params.id}"
            redirect(action:list)
        }
        else {
            return [ addressInstance : addressInstance ]
        }
    }

    def update = {
        def addressInstance = rowingmanager.domain.Address.get( params.id )
        if(addressInstance) {
            addressInstance.properties = params
            if(!addressInstance.hasErrors() && addressInstance.save()) {
                flash.message = "rowingmanager.domain.Address ${params.id} updated"
                redirect(action:show,id:addressInstance.id)
            }
            else {
                render(view:'edit',model:[addressInstance:addressInstance])
            }
        }
        else {
            flash.message = "rowingmanager.domain.Address not found with id ${params.id}"
            redirect(action:edit,id:params.id)
        }
    }

    def create = {
        def addressInstance = new rowingmanager.domain.Address()
        addressInstance.properties = params
        return ['addressInstance':addressInstance]
    }

    def save = {
        def addressInstance = new rowingmanager.domain.Address(params)
        if(!addressInstance.hasErrors() && addressInstance.save()) {
            flash.message = "rowingmanager.domain.Address ${addressInstance.id} created"
            redirect(action:show,id:addressInstance.id)
        }
        else {
            render(view:'create',model:[addressInstance:addressInstance])
        }
    }         */
    
}
